function delete_file() {
    let file_name = document.getElementById("file_typeee").innerText
    let api_url = "/delete/" + file_name;
    fetch(api_url, {
        method: 'GET',
        headers: {'Content-Type': 'application/json',},
    })
        // .then(response => response.json())  // 解析响应为 json, 无需再 JSON.parse() 解析
        .then(response => response.text())  // 解析响应为 文本
        .then(data => {

            if(data === "success"){
                alert("删除成功 ^_^ ")
                location.reload();
            }
            if(data === "fail"){
                alert("删除失败 ... ")
            }

        })
        .catch((error) => {
            console.error('Error:', error);
        });

}

